package com.spzx.channel.domain.vo;

import com.spzx.product.api.domain.Product;
import com.spzx.product.api.domain.ProductSku;
import com.spzx.product.api.domain.vo.SkuPriceVo;
import com.spzx.product.api.domain.vo.SkuStockVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.alibaba.fastjson2.JSONArray;

import java.util.List;
import java.util.Map;

/**
 * ClassName: ItemVo
 * Package: com.spzx.channel.domain.vo
 * Description:
 *
 * @Author 咚咚小圆帽
 * @Create 2025/3/18 20:02
 * @Version 1.0
 */
@Data
@Schema(description = "商品详情对象")
public class ItemVo {

    @Schema(description = "商品sku信息")
    private ProductSku productSku;

    @Schema(description = "商品信息")
    private Product product;

    @Schema(description = "最新价格信息")
    private SkuPriceVo skuPrice;

    @Schema(description = "商品轮播图列表")
    private List<String> sliderUrlList;

    @Schema(description = "商品详情图片列表")
    private List<String> detailsImageUrlList;

    @Schema(description = "商品规格信息")
    private JSONArray specValueList;

    @Schema(description = "商品库存信息")
    private SkuStockVo skuStockVo;

    @Schema(description = "商品规格对应商品skuId信息")
    private Map<String,Long> skuSpecValueMap;

}
